// MeizuM8WinApp.cpp : Defines the entry point for the application.
//

/************************************************************************/
/*
 * Author:    $username$
 * Create on: $time$
 */
/************************************************************************/

// project related header file
#include "stdafx.h"
#include "MeizuWinApp.h"
#include "MeizuMainWnd.h"

// include the MZFC library header file
#include <mzfc_inc.h>

// Application class derived from CMzApp
class CMeizuApp: public CMzApp
{
public:
  // The main window of the app.
  CMeizuMainWnd m_MainWnd;

  // Initialization of the application
  virtual BOOL Init()
  {
	// Init the COM relative library.
    CoInitializeEx(0, COINIT_MULTITHREADED);

	// Create the main window
    RECT rcWork = MzGetWorkArea();
    m_MainWnd.Create(rcWork.left,rcWork.top,RECT_WIDTH(rcWork),RECT_HEIGHT(rcWork), 0, 0, 0);
    m_MainWnd.Show();

	// return TRUE means init success.
    return TRUE;
  }
};

// The global variable of the application.
CMeizuApp theApp;